package com.yhert.study.springcloud.study01.service.account.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.yhert.study.springcloud.study01.service.account.beans.User;
import com.yhert.study.springcloud.study01.service.account.service.hystrix.UserServiceHystrix;

@FeignClient(value = "http://serviceUser", fallback = UserServiceHystrix.class)
public interface UserService {

	@RequestMapping("user/{username}")
	User getUser(@PathVariable("username") String username);

}
